package com.meituan.catering.management.product.biz.service;

import com.meituan.catering.management.common.model.biz.UserContextBO;
import com.meituan.catering.management.product.api.http.model.request.CreateProductHttpRequest;
import com.meituan.catering.management.product.api.http.model.request.UpdateProductHttpRequest;
import com.meituan.catering.management.product.biz.model.ProductBO;

import java.util.List;

public interface ProductAccessoryBizService {
    List<ProductBO.AccessoryGroup> findAllByProductId(Long tenantId, Long productId);

    /**
     * 批量插入加料
     */
    int insetList(UserContextBO userContextBO, List<CreateProductHttpRequest.AccessoryGroup> accessoryReq, Long productId);

    /**
     * 批量插入加料
     */
    List<Long> updataList(UserContextBO userContextBO, List<UpdateProductHttpRequest.AccessoryGroup> accessoryReq, Long productId);

    /**
     * 删除
     */
    Integer delete(UserContextBO userContextBO, Long productId);
}
